package anatex.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import anatex.domain.Task;
import javax.persistence.ManyToOne;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;

@RooJavaBean
@RooToString
@RooEntity(finders = { "findTaskLogsByTask" })
public class TaskLog {

    @ManyToOne
    private Task task;

    private Integer iteration;

    private Double averageFitness;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "-S")
    private Date logTime;
}
